<?php
namespace Home\Controller;

class TubaController extends HomeController
{


    public function index()
    {
        $this->ziliao();
    }

    public function ziliao()
    {
        $list = M('Tuba')->where('mark=0')->order('create_time desc')->select();
        $this->assign('list', $list);
        $this->display();
    }

    public function dongtai()
    {
        $list = M('Tuba')->where('mark=1')->order('create_time desc')->select();
        $this->assign('list', $list);
        $this->display();
    }

    public function detail(){
        $id = I('id','');
        $map['id'] = $id;
        $data = M('Tuba')->where($map)->find();
        $this->assign('data', $data);
        $this->display();
    }

}